package sword;

/**
 * @Author: 海琳琦
 * @Date: 2022/5/25 16:28
 */
public class Title16 {

    public static double myPow(double x, int n) {
        if (x == 1) {
            return 1.0;
        }
        double result = 1.0;
        if (n < 0) {
            for (int i = 0; i < Math.abs((long)n); i++) {
                result *= x;
            }
        }else{

        }
        return result;
    }

    public static void main(String[] args) {
//        myPow(2, -2147483648);
        System.out.println(Math.pow(0, -1));
    }
}
